package controllers;

import play.*;
import play.mvc.*;

import java.util.*;

import models.*;
@With(Secure.class)
public class Application extends Controller {

	static ArrayList<String> passwordList = new ArrayList();
	
	public static void index() {
        render();
    }
    
	public static void Add(String date) {
		
		
        render(date);
    }
	public static void enterMonth() {
        render();
    }
	public static void validateAdd(String date, String password) {
		System.out.println(date + " ** " + password );
		passwordList.add("pass1");
		passwordList.add("pass2");
		
		if(passwordList.contains(password))
        Add(date);
		else
			enterMonth();
    }
	
	
    

}